package main

import (
	"time"
	"fmt"
)

func main() {
	ticker:=time.NewTicker(time.Second)
	var i int
	for  {
		<-ticker.C
		i++
		fmt.Println(i)
		if i==3 {
			return
		}
	}
}
